def calc_number() -> dict:
    cnt = input("请输入：")
    letters = 0
    digits = 0
    for i in cnt:
        if i.isdigit():
            digits += 1
        elif i.isalpha():
            letters += 1
    res = {"LETTERS": letters, "DIGITS": digits}
    return res

if __name__ == '__main__':
    print(calc_number())
